
			
			function updateTips(t) {
				tips.text(t).effect("highlight",{},1500);
			}

			function checkLength(o,n,min,max) {

				if ( o.val().length > max || o.val().length < min ) {
					o.addClass('ui-state-error');
					updateTips("Length of " + n + " must be between "+min+" and "+max+".");
					return false;
				} else {
					return true;
				}

			}

			function checkRegexp(o,regexp,n) {

				if ( !( regexp.test( o.val() ) ) ) {
					o.addClass('ui-state-error');
					updateTips(n);
					return false;
				} else {
					return true;
				}

			}
			
			function createXmlHttp() {
				var xmlHttp = false;
				/*@cc_on @*/
				/*@if (@_jscript_version >=5)
				 try {
				   xmlHttp = new ActiveXObject("Msxml2.XMLHTTP");
				 } catch (e) {
				 	try {
				 	  xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
				 	} catch (e2) {
				 	  xmlHttp = false;
				 	}
				 }
				 @end @*/
				if (!xmlHttp && typeof XMLHttpRequest != 'undefined') {
					xmlHttp = new XMLHttpRequest();
				}
				return xmlHttp;
			}